-- GENERATED SPELL FOR [Pitch] --


function spell0_28097(pUnit, Event) --@Jump Attack,n/a--
pUnit:FullCastSpellOnTarget(54487,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28097', 539, 1)
end

function spell1_28097(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(24332,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28097', 9000, 1)
end

function Sorts_28097(pUnit, Event)
local choix_sorts_28097 = math.random(0, 1)
if choix_sorts_28097 == 0 then
pUnit:RegisterEvent('spell0_28097', 1, 1)
end
if choix_sorts_28097 == 1 then
pUnit:RegisterEvent('spell1_28097', 1, 1)
end
end

function mob28097_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28097', math.random(1500, 3000), 1)
end

function mob28097_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28097_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28097_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28097, 1, 'mob28097_Action')
RegisterUnitEvent(28097, 2, 'mob28097_Leave')
RegisterUnitEvent(28097, 3, 'mob28097_Kill')
RegisterUnitEvent(28097, 4, 'mob28097_Die')
